package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.TravelComment;
import cn.wolfcode.luowowo.comment.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

public interface ITravelCommentService {
    /**
     * 保存用户评论
     * @param travelComment
     */
    TravelComment save(TravelComment travelComment);

    /**
     * mongodb分页查询
     * @param qo
     * @return
     */
    Page query(TravelCommentQuery qo);

    /**
     * 获取评论总数
     * @return
     */
    long getCount(Long id);
}
